import Vue from 'vue'
import Router from 'vue-router'
import menuRight from '@/components/pages/base/menuRight'
import oneForm from '@/components/pages/parts/oneForm'
import oneTable from '@/components/pages/parts/oneTable'
import allHome from '@/components/pages/base/allHome'
import systemHome from '@/components/pages/system/systemHome'

Vue.use(Router)

export default new Router({

  // nginx 配置2 （共3点）
  base: '/gentle-vue/',
  // 路由
  routes: [
    {
      path: '/oneForm',
      name: 'oneForm',
      component: oneForm
    },
    {
      path: '/systemHome',
      name: 'systemHome',
      component: systemHome
    },
    {
      path: '/',
      name: 'allHome',
      component: allHome
    },
    {
      path: '/menuRight',
      name: 'menuRight',
      component: menuRight
    },
    {
      path: '/oneTable',
      name: 'oneTable',
      component:  oneTable
    }
  ]
})
